import {getAllSort} from '@/api/layout.js'
import { defineStore } from 'pinia'
import {ref} from 'vue'
export const useCategoryStore=defineStore('category',()=>{
  let sort=ref([])
  const getSort=async ()=>{
    const {result:res}=await getAllSort()
    sort.value=res
  }
  return {
    sort,
    getSort
  }
}
)